const Vue=require('vue/dist/vue');

// const TPL=require('./chat.html');
 Vue.component("clientlist", {
    template:`<div class="card" style="width: 220px; z-index: 100;">
    
    <div>
        <div v-for="c in clients">
            {{c}}
        </div>
    </div>
</div>`,
   name:"clientList",
    data() {
        return {
            clients: []
        };
    },

    methods: {
        setClients(clients) {
            this.clients.length = 0;
            this.clients.push(...clients);
        }
    }
});

